Skip to content

Move string view decision to configure time - WIP#1608

Closed
SwintonStreet wants to merge 2 commits intoopen-source-parsers:masterfrom
SwintonStreet:Move-string_view-decision-to-configure-time
Closed

Move string view decision to configure time - WIP#1608
SwintonStreet wants to merge 2 commits intoopen-source-parsers:masterfrom
SwintonStreet:Move-string_view-decision-to-configure-time

Conversation

@SwintonStreet
Copy link
Contributor

@SwintonStreet SwintonStreet commented May 18, 2025

WIP - look at moving the JSONCPP_HAS_STRING_VIEW to configure time from compile time. This is so that there cannot be a mismatch between the compiled library objects and the headers.

Another option is to move the definition to the header so this is always correct.

Only cmake builds are covered at the moment

Detected with clang-tidy.
This ensures that cmake between the compiled objects and the headers
match. Previously, if they didn't match you could get linker issues.
@baylesj
Copy link
Contributor

baylesj commented Mar 16, 2026

Attempting to address this is #1661

@baylesj baylesj closed this Mar 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants